python,python3: use setuptools & pip versions from python{3}-version.mk
authorAlexandru Ardelean <[email protected]>
Wed, 2 Jan 2019 18:10:42 +0000 (20:10 +0200)
committerAlexandru Ardelean <[email protected]>
Wed, 2 Jan 2019 21:42:01 +0000 (23:42 +0200)
`setuptools` & `pip` whl files were selected via wildcards, because it was
easier in the beginning.
Also, initially there weren't any PYTHON{3}_{SETUTPTOOLS/PIP}_VERSION
variables. But now since these vars exist, it makes sense to use them,
because we can catch easier (at build) time if Python/Python3 bump these
versions.

Signed-off-by: Alexandru Ardelean <[email protected]>
lang/python/python/Makefile
lang/python/python3/Makefile

index 639752090863b38e13393cf11cce0288b46afe24..d27882883d289f62138430d7e4459d3a72b7f30b 100644 (file)
@@ -170,7 +170,7 @@ define Build/Compile/python-setuptools
        $(STAGING_DIR_HOSTPKG)/bin/pip install \
                --ignore-installed \
                --root=$(PKG_BUILD_DIR)/install-setuptools --prefix=. \
-               $(PKG_BUILD_DIR)/Lib/ensurepip/_bundled/setuptools-*.whl
+               $(PKG_BUILD_DIR)/Lib/ensurepip/_bundled/setuptools-$(PYTHON_SETUPTOOLS_VERSION)-py2.py3-none-any.whl
 endef
 endif # CONFIG_PACKAGE_python-setuptools
 
@@ -179,7 +179,7 @@ define Build/Compile/python-pip
        $(STAGING_DIR_HOSTPKG)/bin/pip install \
                --ignore-installed \
                --root=$(PKG_BUILD_DIR)/install-pip --prefix=. \
-               $(PKG_BUILD_DIR)/Lib/ensurepip/_bundled/pip-*.whl
+               $(PKG_BUILD_DIR)/Lib/ensurepip/_bundled/pip-$(PYTHON_PIP_VERSION)-py2.py3-none-any.whl
 endef
 endif # CONFIG_PACKAGE_python-pip
 
index d6fec695c02d7745df12c49dea9dec55679b9253..e4116e27d1da929f0d16ad2051a41417416979b9 100644 (file)
@@ -174,7 +174,7 @@ define Build/Compile/python3-setuptools
        $(STAGING_DIR_HOSTPKG)/bin/pip3 install \
                --ignore-installed \
                --root=$(PKG_BUILD_DIR)/install-setuptools --prefix=. \
-               $(PKG_BUILD_DIR)/Lib/ensurepip/_bundled/setuptools-*.whl
+               $(PKG_BUILD_DIR)/Lib/ensurepip/_bundled/setuptools-$(PYTHON3_SETUPTOOLS_VERSION)-py2.py3-none-any.whl
 endef
 endif # CONFIG_PACKAGE_python3-setuptools
 
@@ -183,7 +183,7 @@ define Build/Compile/python3-pip
        $(STAGING_DIR_HOSTPKG)/bin/pip3 install \
                --ignore-installed \
                --root=$(PKG_BUILD_DIR)/install-pip --prefix=. \
-               $(PKG_BUILD_DIR)/Lib/ensurepip/_bundled/pip-*.whl
+               $(PKG_BUILD_DIR)/Lib/ensurepip/_bundled/pip-$(PYTHON3_PIP_VERSION)-py2.py3-none-any.whl
 endef
 endif # CONFIG_PACKAGE_python3-pip